export default {
    list: [],
    subscribe: function (item) {
        this.list.push(item);
    },
    publish: function (info) {
        this.list.forEach(function (item) {
            item && item(info);
        })
    }
}